<%@ page import="projectmanager.Project" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
		<title><g:message code="Project Report" /></title>
	</head>
	<body>
		<a href="#create-membership" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div id="container">
		<g:render template="/layouts/sidebar"/>
		<div id="content">
		<div id="create-membership" class="content scaffold-create" role="main">
			<h1><g:message code="Project Report" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${projectInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${projectInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="results" >
				<fieldset class="form">
					<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'project', 'error')} required">
						<label for="project">
							<g:message code=".project.label" default="Project" />
					<span class="required-indicator">*</span>
					</label>
					<g:select id="project" name="project.id" from="${projectmanager.Project.list()}" optionKey="id" required="" value="${proInstance?.project?.id}" class="many-to-one"/>
</div>
				</fieldset>
				</div></div>
				<div id=footer></div>
				<fieldset class="buttons">
					<g:submitButton name="submit" class="report" value="Create" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
